package idu0080.veebitoorik.serviceclient;

import java.util.ResourceBundle;

public class Yl6ServicesLocationData 
{
	private String host;
	private int port;
	
	private final String YL6_OPENERP_SERVICES_IMPL_PROPERTIES_FILE_NAME = "open_erp_server_connection";
	private final String YL6_OPENERP_SERVICES_IMPL_HOST_PROP_NAME = "yl6_openerp_service_impl_host";
	private final String YL6_OPENERP_SERVICES_IMPL_PORT_PROP_NAME = "yl6_openerp_service_impl_port";
	
	public Yl6ServicesLocationData() 
	{
		ResourceBundle resourceBundle = ResourceBundle.getBundle(YL6_OPENERP_SERVICES_IMPL_PROPERTIES_FILE_NAME);
		this.host = resourceBundle.getString(YL6_OPENERP_SERVICES_IMPL_HOST_PROP_NAME);
		this.port = Integer.parseInt(resourceBundle.getString(YL6_OPENERP_SERVICES_IMPL_PORT_PROP_NAME));
	}

	public String getHost() 
	{
		return host;
	}

	public void setHost(String host) 
	{
		this.host = host;
	}

	public int getPort() 
	{
		return port;
	}

	public void setPort(int port) 
	{
		this.port = port;
	}
}
